package com.iflytek.day10;

/*
    学生类
 */
class _04_Student {
  // 成员变量
  private String name;
  private int age;

  // get/set方法
  public void setName(String n) {
    name = n;
  }

  public String getName() {
    return name;
  }

  public void setAge(int a) {
    age = a;
  }

  public int getAge() {
    return age;
  }

  public void show() {
    System.out.println(name + "," + age);
  }
}